<template>
  <view class="broadcast-contanier" @click="toBroadcast">
    <view class="top-box">
      <text class="title"> 抢票播报站</text>
      <view class="broadcast-text">
        {{ showConcert.performerNames + ">" }}
      </view>
    </view>
    <view class="mid-box">
      <view class="star-avatar">
        <img :src="showConcert.performanceCoverUrl" alt="" />
      </view>
      <view class="broadcast-detail">
        {{ showConcert.performerNames + showConcert.performanceTitle }}
        AGA 江海迦ONEDERFUL LIVE 2024巡回演唱会-广州站
      </view>
    </view>
    <view class="bt-box">
      <view class="hot">
        <view class="hot-tit">火爆热抢中</view>
        <view class="tie-bold">抢!</view>
      </view>
    </view>
  </view>
</template>

<script>
import { getStartSaleOfTodayPerformance } from "../../../../api/user/concert";
export default {
  data() {
    return {
      showConcert: {},
    };
  },
  created() {
    this.getList();
  },
  methods: {
    toBroadcast() {
      uni.navigateTo({
        url: "/subpkg/ticket-broadcast/ticket-broadcast",
        fail(error) {
          console.log(error);
        },
      });
    },
    getList() {
      getStartSaleOfTodayPerformance().then((res) => {
        this.showConcert = res.data[0];
        console.log(this.showConcert);
      });
    },
  },
};
</script>

<style lang="scss">
.broadcast-contanier {
  width: 48%;
  margin-left: 15px;
  height: 120px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 2px 2px 2px #cfcfcf;
  background-image: linear-gradient(
    181.2deg,
    rgb(249, 230, 233) 10.5%,
    rgb(249, 249, 249) 86.8%
  );

  .top-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgb(249, 230, 233);
    width: 100%;
    height: 28px;

    .title {
      width: 48%;
      height: 100%;
      font-size: 16px;
      line-height: 25px;
      text-align: center;
      font-family: "youyuan";
      font-weight: 600;
      // letter-spacing: 1px;
    }

    .broadcast-text {
      border-radius: 10px;
      letter-spacing: 2rpx;
      width: 50%;
      height: 70%;
      font-size: 13px;
      text-align: center;
      line-height: 20px;
      color: #d4237a;
    }
  }

  .mid-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 72px;
    padding: 1px;
    // background-color: #d4237a;
    .star-avatar {
      width: 30%;
      height: 80%;
      border-radius: 50%;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
      }
    }

    .broadcast-detail {
      width: 67%;
      box-sizing: border-box;
      padding: 0px 8px;
      height: 80%;
      font-size: 13px;
      word-wrap: break-word;
      word-break: break-all;
      text-overflow: ellipsis;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      -moz-box-orient: vertical;
    }
  }

  .bt-box {
    width: 100%;
    height: 20px;
    // background-color: white;
    .hot {
      float: right;
      display: flex;
      justify-content: space-around;
      margin-right: 6px;
      width: 60%;
      height: 90%;
      border-top-left-radius: 10px;
      border-top-right-radius: 5px;
      border-bottom-right-radius: 5px;
      background-color: #e72663;

      .hot-tit {
        font-size: 13px;
        text-align: center;
        color: white;
      }

      .tie-bold {
        margin-top: -5px;
        font-weight: 800;
        font-size: 18px;
        color: white;
        font-family: "youyuan";
        transform: skewX(-20deg);
      }
    }
  }
}
</style>
